# coding=utf-8
__author__ = 'songchao'


SERVER_IP = "http://47.52.58.220"
SERVER_IP_2 = "http://127.0.0.1"
SERVER_PORT = "30001"
SERVER_URL = SERVER_IP + ":" + SERVER_PORT

# 获取当前在线用户 GET
URL_GET_CUR_PLAYER = SERVER_URL + "/get_cur_player"

# 获取当前游戏转台 GET
URL_GET_CUR_GAME_STATUS = SERVER_URL + "/get_cur_game_status"

# 给玩家上下分 POST @params = {"tel":用户名, "gold":金币增量}
URL_POST_UPDATE_USER_GOLD = SERVER_URL + "/update_user_gold"

# 修改数据库游戏配置之后的更新按钮 GET
URL_GET_UPDATE_GAME_CONFIG = SERVER_URL + "/update_game_config"

# 获取当前游戏配置
URL_GET_GAME_CONFIG = SERVER_URL + "/get_game_config"

# 系统停服通知 params = {"time": 停服时间(时间戳),"content":停服公告内容}
URL_POST_SYSTEM_STOP_NOTICE = SERVER_URL + "/system_notice"

# 测试接口 确定下一张牌的花色 params={"next_color":花色(只能是0,1,2,3,4其中之一)}
URL_POST_TEST_NEXT_COLOR = SERVER_URL + "/test_next_color"

# 测试接口 获取预开花色列表
URL_GET_TEST_NEXT_COLOR_LIST = SERVER_URL + "/get_test_card_list"

# 用户权限配置
ROLES = {
    'monitor':          0b1,        # 查看系统当前状态
    'watch_away_pool':  0b10,       # 查看奖池, 修改游戏配置,
    'watch_record':     0b100,      # 查看流水
    'modify_gold':      0b1000,     # 操作玩家上下分,
    'set_power':        0b1000000   # 修改系统用户权限,注册用户,禁用用户
}

USER_STATUS = {
    "normal":0,                 # 正常状态
    "ban_login":0b1,            # 禁止登陆
    "ban_classic_wxhh": 0b10    # 禁止进入经典五星宏辉
}

PER_PAGE = 10                   # 每页显示玩家人数